package Terminal.UI;

import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Titolo extends PanelComponent{
	
	private JLabel logo = new JLabel();
	
//	private JPanel panelt;
	private JLabel payoff = new JLabel();


	public Titolo(){
		super();
		
		pannellocomponente = new JPanel(null);
		
			
	}
	
	public Titolo(PanelComponent padre){
		super(padre);
		pannellocomponente = new JPanel(null);
	}

	
	public JPanel createComponents(){
		//panelt= super.createComponents();

		
		
		pannellocomponente.setBounds(0,0, 1366, 151);
		
		logo.setBounds(50, 20, 150, 150);
		payoff.setBounds(250, 20, 600, 150);
					
		logo.setIcon(new ImageIcon("src\\Server\\UI\\img\\TLLogo.gif"));
			
		payoff.setText("Time Logging");
		Font currentFont = pannellocomponente.getFont();
		Font newFont = new Font(currentFont.getName(), currentFont.getStyle(), 56);
		payoff.setFont(newFont);
			
		pannellocomponente.add(logo);
		pannellocomponente.add(payoff);
		
	    size_width=1050;//logo.getPreferredSize().width+payoff.getPreferredSize().width;
	   // if(immaginelabel.getPreferredSize().height>Timelogginglabel.getPreferredSize().height){size_height=immaginelabel.getPreferredSize().height;}else{size_height=Timelogginglabel.getPreferredSize().height;}
	    size_height=150;
	    
	    setSize(size_width,size_height);
	   
	    
	    return pannellocomponente;
	}
	
	public void updateSize(){}
	
}
